package com.leador.broadcase;

import android.os.Handler;

/**
 * Created by liuha on 2016/9/17.
 */
public class ReStartSocketThread extends Thread{
    private Handler handler;
    public ReStartSocketThread(Handler handler) {
        this.handler = handler;
    }
    @Override
    public void run() {
        synchronized (this) {
            try {
                wait(5000L);
            }
            catch (InterruptedException localInterruptedException) {}
        }
        if (this.handler != null) {
            this.handler.obtainMessage(24).sendToTarget();
        }
    }
}
